﻿#include <QApplication>
#include <QDesktopWidget>
#include <QFile>
#include <QResource>
#include "QMainControllerWindow.h"
int main(int argc, char* argv[])
{
    QApplication a(argc, argv);
    {
        //设置界面风格
        QFile styleFile(":/QSS/res/QClient.qss");
        if (styleFile.open(QIODevice::ReadOnly))
        {
            a.setStyleSheet(styleFile.readAll());
        }
    }
    QDesktopWidget* pDesk = QApplication::desktop();
    QMainControllerWindow qMainControllerWindow;
    qMainControllerWindow.show();
    qMainControllerWindow.move((pDesk->width() - qMainControllerWindow.width()) / 2, (pDesk->height() - qMainControllerWindow.height()) / 2);

    qMainControllerWindow.StartClientServer();
    return a.exec();
}